﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;

namespace DelonixRegiaHMSys.Core.Services
{
    public class stServices
    {
        private readonly IStaffQuery _StaffQuery;
        public stServices(IStaffQuery StaffQuery)
        {
            _StaffQuery = StaffQuery;
        }
        public IEnumerable<Staff> GetAll()
        {
            return _StaffQuery.GetAll();
        }
        public void AddStaff(Staff st)
        {
            _StaffQuery.AddStaff(st);
        }

        public void DeleteStaff(string staffID)
        {
            _StaffQuery.DeleteStaff(staffID);
        }

        public void UpdateStaff(Staff st)
        {
            _StaffQuery.UpdateStaff(st);
        }
        public IEnumerable<Staff> RetrieveStaff(string dutiesName)
        {
            return _StaffQuery.RetrieveStaffbydutiesName(dutiesName);
        }


    }
}
